package samsung.sds.menuManagement.service;

import java.util.List;
import java.util.Map;

import samsung.sds.menuManagement.model.MenuEntity;
import samsung.sds.system.common.baseQuery.BaseServiceInterface;

/**
 * @author hao.wen
 * @createDate 2016-02-23
 * 
 * menuManagement的service组件
 */
public interface MenuManagementService extends BaseServiceInterface<MenuEntity>{

	/**查询菜单树的数据*/
	List<MenuEntity> queryMenuTree();
	
	/**查询右侧菜单详情的数据
	 * @param menuId */
	List<MenuEntity> queryDetail(String menuId);

	/**删除菜单*/
	int deleteMenu(String menuId);
	
	/**获取左边角色*/
	List<MenuEntity> queryRoles(String menuId);
	
	/**处理menuList**/
	void dealWithMenuList(List<MenuEntity> menuList);
	
	/**获得menuCache**/
	Map<String, List<MenuEntity>> getMenuCache();
	
	/**
	 * 更新缓存
	 */
	void updateCache();

}
